import request from '#/utils/requestAbort';

export async function getSectionTrend(params) {
  if (params.marketId === 'PDBLJ') {
    // 处理 黑龙江 的特殊逻辑
    return request('/market-disclosure/ptdHeilongjiangPassageBlockMonitor/getSectionTrend', {
      method: 'POST',
      data: params,
    });
  }
  return request('/disclosure/ptdSpotRealtimeSectionConstraint/getSectionTrend', {
    method: 'POST',
    data: params,
  });
}
export async function getChannelNameList(params) {
  if (params.marketId === 'PDBLJ') {
    // 处理 黑龙江 的特殊逻辑
    return request('/market-disclosure/ptdHeilongjiangPassageBlockMonitor/getSectionNameList', {
      method: 'POST',
      data: params,
    });
  }
  return request('/disclosure/ptdSpotRealtimeSectionConstraint/getChannelNameList', {
    method: 'POST',
    data: params,
  });
}
